﻿CREATE TABLE [dbo].[Usuario] (
    [Id]            INT          IDENTITY (1, 1) NOT NULL,
    [EmpresaId]     INT          NOT NULL,
    [Nombre]        VARCHAR (50) NOT NULL,
    [NombreUsuario] VARCHAR (30) NOT NULL,
    [Clave]         VARCHAR (30) NOT NULL,
    [Cotizar]       BIT          NOT NULL,
    [Borrar]        BIT          NOT NULL,
    [Crear]         BIT          NOT NULL,
    [Activo] BIT NOT NULL DEFAULT 0, 
    CONSTRAINT [PK_Usuario] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [FK_Usuario_Empresa] FOREIGN KEY ([EmpresaId]) REFERENCES [dbo].[Empresa] ([Id])
);

